<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.parser.LALR1 Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="LOGO.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1parser_1_1_l_a_l_r1.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-static-attribs">Static Package Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.parser.LALR1 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.parser.LALR1:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1__inherit__graph.png" border="0" usemap="#context_free_8parser_8_l_a_l_r1_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8parser_8_l_a_l_r1_inherit__map" id="context_free_8parser_8_l_a_l_r1_inherit__map">
<area shape="rect" id="node2" href="classcontext_free_1_1parser_1_1_l_r0.html" title="{contextFree.parser.LR0\n|# grammatica\l|+ setGrammar()\l+ init()\l+ chiusura()\l+ GoTo()\l+ Item()\l+ uguale()\l+ prodPresente()\l}" alt="" coords="31,189,189,355"/><area shape="rect" id="node4" href="interfacecontext_free_1_1parser_1_1_i_parser.html" title="{contextFree.parser.IParser\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="23,5,199,141"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.parser.LALR1:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1__coll__graph.png" border="0" usemap="#context_free_8parser_8_l_a_l_r1_coll__map" alt="Collaboration graph"/></div>
<map name="context_free_8parser_8_l_a_l_r1_coll__map" id="context_free_8parser_8_l_a_l_r1_coll__map">
<area shape="rect" id="node2" href="classcontext_free_1_1parser_1_1_l_r0.html" title="{contextFree.parser.LR0\n||+ setGrammar()\l+ init()\l+ chiusura()\l+ GoTo()\l+ Item()\l+ uguale()\l+ prodPresente()\l}" alt="" coords="178,465,336,631"/><area shape="rect" id="node4" href="interfacecontext_free_1_1parser_1_1_i_parser.html" title="{contextFree.parser.IParser\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="5,199,181,335"/><area shape="rect" id="node6" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html" title="Grammar Interface." alt="" coords="206,147,412,386"/><area shape="rect" id="node10" href="classcontext_free_1_1parser_1_1_automa.html" title="{contextFree.parser.Automa\n||+ Automa()\l+ Automa()\l+ getStates()\l+ setStates()\l+ newItemsFromKernels()\l+ getState()\l+ toString()\l+ removeDollarLookahed()\l+ size()\l}" alt="" coords="447,451,627,645"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1parser_1_1_l_a_l_r1-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a38a0cedcd893b16f8207455f2287a7ad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38a0cedcd893b16f8207455f2287a7ad"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>LALR1</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> gram)</td></tr>
<tr class="memitem:a4dcd4a4ae0b77edc1dc8abffca59c80a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dcd4a4ae0b77edc1dc8abffca59c80a"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>getActionTable</b> ()</td></tr>
<tr class="memitem:a4bf6b83fddf359b6b0f6df26b1e58455"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4bf6b83fddf359b6b0f6df26b1e58455"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setActionTable</b> (String[][] actionTable)</td></tr>
<tr class="memitem:af87607068fe2d41d8abbdb49fdeefcc0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af87607068fe2d41d8abbdb49fdeefcc0"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>getGotoTable</b> ()</td></tr>
<tr class="memitem:a002ce309af59de1951007a27d86b53b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a002ce309af59de1951007a27d86b53b7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGotoTable</b> (String[][] gotoTable)</td></tr>
<tr class="memitem:a27ddf376aef3ff22758c44017b37c63d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27ddf376aef3ff22758c44017b37c63d"></a>
<a class="el" href="classcontext_free_1_1parser_1_1_automa.html">Automa</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getAutoma</b> ()</td></tr>
<tr class="memitem:ab1127f78e9b15a062f6bf344f1117327"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab1127f78e9b15a062f6bf344f1117327"></a>
<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getGrammar</b> ()</td></tr>
<tr class="memitem:a66f5fb1ac9aab089d3fa937acf3f63ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66f5fb1ac9aab089d3fa937acf3f63ce"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGrammar</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> gram)</td></tr>
<tr class="memitem:a7618cff4af4edfffb9a538a7cb1e79cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf">init</a> ()  throws Exception</td></tr>
<tr class="memdesc:a7618cff4af4edfffb9a538a7cb1e79cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the LALR(1) automaton from <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html">LR0</a> automaton.  <a href="#a7618cff4af4edfffb9a538a7cb1e79cf"></a><br/></td></tr>
<tr class="memitem:ac711dbbc2be25d15c1a8aade7579e94e"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e">chiusuraLR1</a> (List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt; i)</td></tr>
<tr class="memdesc:ac711dbbc2be25d15c1a8aade7579e94e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passed a list of production I that form the kernel of a state, return closing it, and the lookahead symbols associated.  <a href="#ac711dbbc2be25d15c1a8aade7579e94e"></a><br/></td></tr>
<tr class="memitem:a79576626b3b59b832faecc986b293b36"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36">tableCostruction</a> ()  throws Exception</td></tr>
<tr class="memdesc:a79576626b3b59b832faecc986b293b36"><td class="mdescLeft">&#160;</td><td class="mdescRight">builds the Action table GoTo from an automa <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html">LALR1</a> and tells us if it is or not type of <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html">LALR1</a>  <a href="#a79576626b3b59b832faecc986b293b36"></a><br/></td></tr>
<tr class="memitem:a2281981b3043c0150c1b3d3967572b1f"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f">reduce</a> (<a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a> stato)</td></tr>
<tr class="memdesc:a2281981b3043c0150c1b3d3967572b1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">if the point is in the last position he wrote the reduces in the action table.  <a href="#a2281981b3043c0150c1b3d3967572b1f"></a><br/></td></tr>
<tr class="memitem:a7379103379c94e377daca0022b28771e"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7379103379c94e377daca0022b28771e">actionWrite</a> (int i, int j, int x, String action)</td></tr>
<tr class="memdesc:a7379103379c94e377daca0022b28771e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the action Reduce or Scift in the Action table.  <a href="#a7379103379c94e377daca0022b28771e"></a><br/></td></tr>
<tr class="memitem:a9c19be71fc16e04343eb3c23b6eac9da"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c19be71fc16e04343eb3c23b6eac9da"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isAmbiguos</b> ()</td></tr>
<tr class="memitem:ad7628eb817b4a8efff71f6e22cc1659f"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ad7628eb817b4a8efff71f6e22cc1659f">printTable</a> ()</td></tr>
<tr class="memdesc:ad7628eb817b4a8efff71f6e22cc1659f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string with tables Goto Action.  <a href="#ad7628eb817b4a8efff71f6e22cc1659f"></a><br/></td></tr>
<tr class="memitem:afa3cc07b08ecbe69486105beb311eb69"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa3cc07b08ecbe69486105beb311eb69"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>toString</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pac-static-attribs"></a>
Static Package Attributes</h2></td></tr>
<tr class="memitem:a9684757c9b143a5b82609c1de472400e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9684757c9b143a5b82609c1de472400e"></a>
static Logger&#160;</td><td class="memItemRight" valign="bottom"><b>logger</b> = Logger.getLogger(LALR1.class.getName())</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aeec32b5c83e031225114f46ac377f804"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804">calculateSymbol</a> (<a class="el" href="classcontext_free_1_1parser_1_1_automa.html">Automa</a> atm)  throws Exception</td></tr>
<tr class="memdesc:aeec32b5c83e031225114f46ac377f804"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation and propagation of symbol.  <a href="#aeec32b5c83e031225114f46ac377f804"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a3e69dd16d8b89cc9a210286efe0aa0d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e69dd16d8b89cc9a210286efe0aa0d8"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isAmbiguous</b> = false</td></tr>
<tr class="memitem:ac76b78ae26e1f59674ae10b9c1059213"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac76b78ae26e1f59674ae10b9c1059213"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>ambiguo</b> = &quot;&quot;</td></tr>
<tr class="memitem:ab6054628eaec08e8b3b77a37e219ef02"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6054628eaec08e8b3b77a37e219ef02"></a>
<a class="el" href="classcontext_free_1_1parser_1_1_automa.html">Automa</a>&#160;</td><td class="memItemRight" valign="bottom"><b>automa</b></td></tr>
<tr class="memitem:a50a59810900d20102a28766aad917b79"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50a59810900d20102a28766aad917b79"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>actionTable</b></td></tr>
<tr class="memitem:a6f27da8ba10ef81be36845b0fffc9858"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6f27da8ba10ef81be36845b0fffc9858"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>gotoTable</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00014">14</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7379103379c94e377daca0022b28771e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7379103379c94e377daca0022b28771e">contextFree.parser.LALR1.actionWrite</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>action</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes the action Reduce or Scift in the Action table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">current</td><td>state </td></tr>
    <tr><td class="paramname">-1</td><td>If it reduces, else the destination state of the shift </td></tr>
    <tr><td class="paramname">symbol</td><td>for which you go write in the Action table </td></tr>
    <tr><td class="paramname">action</td><td>"s" if it is shift, else the production for which reduce </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>false case of ambiguity </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00369">369</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a7379103379c94e377daca0022b28771e_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a7379103379c94e377daca0022b28771e_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a7379103379c94e377daca0022b28771e_icgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a7379103379c94e377daca0022b28771e_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="565,5,837,32"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="299,31,517,57"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="885,5,1080,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aeec32b5c83e031225114f46ac377f804"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804">contextFree.parser.LALR1.calculateSymbol</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1parser_1_1_automa.html">Automa</a>&#160;</td>
          <td class="paramname"><em>atm</em></td><td>)</td>
          <td>  throws Exception<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation and propagation of symbol. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">atm</td><td>the automaton </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>0 if no symbol have created, 1 otherwise. -1 if error. </dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>
<p>Trasformo la singola produzione k in una list per poterla passare a chiusura <a class="el" href="classcontext_free_1_1parser_1_1_l_r1.html">LR1</a> </p>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00122">122</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="328,123,579,150"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="1003,72,1203,99"/><area shape="rect" id="node7" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="1251,72,1506,99"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="671,72,910,99"/><area shape="rect" id="node12" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="673,123,909,150"/><area shape="rect" id="node14" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="663,174,918,200"/><area shape="rect" id="node16" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382" title="contextFree.parser.IndexedProduction.getLookahead" alt="" coords="627,224,954,251"/><area shape="rect" id="node18" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="671,275,910,302"/></map>
</div>
</p>

<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_icgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_aeec32b5c83e031225114f46ac377f804_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="328,5,523,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac711dbbc2be25d15c1a8aade7579e94e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a>&gt; <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e">contextFree.parser.LALR1.chiusuraLR1</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Passed a list of production I that form the kernel of a state, return closing it, and the lookahead symbols associated. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">the</td><td>kernels of the state </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>list of products forming the state </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00171">171</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="680,72,880,99"/><area shape="rect" id="node5" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="929,72,1183,99"/><area shape="rect" id="node7" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="349,72,587,99"/><area shape="rect" id="node10" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="350,123,586,150"/><area shape="rect" id="node12" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="341,174,595,200"/><area shape="rect" id="node14" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382" title="contextFree.parser.IndexedProduction.getLookahead" alt="" coords="305,224,631,251"/><area shape="rect" id="node16" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="349,275,587,302"/></map>
</div>
</p>

<p><div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_icgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_ac711dbbc2be25d15c1a8aade7579e94e_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="627,5,821,32"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="304,31,579,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7618cff4af4edfffb9a538a7cb1e79cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf">contextFree.parser.LALR1.init</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws Exception<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize the LALR(1) automaton from <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html">LR0</a> automaton. </p>
<p>If the grammar is LALR(1) then initialize action and goto table. </p>
<dl class="section return"><dt>Returns:</dt><dd>0 if the grammar is ambiguous, 1 otherwise. -1 if error </dd></dl>

<p>Implements <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html">contextFree.parser.LR0</a>.</p>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00076">76</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a7618cff4af4edfffb9a538a7cb1e79cf_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a7618cff4af4edfffb9a538a7cb1e79cf_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a7618cff4af4edfffb9a538a7cb1e79cf_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a7618cff4af4edfffb9a538a7cb1e79cf_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="312,208,499,235"/><area shape="rect" id="node28" href="classcontext_free_1_1parser_1_1_automa.html#ad82cfb3bb6b22d084ef18a95350828b3" title="Get kernels element for each states into automa." alt="" coords="249,512,562,539"/><area shape="rect" id="node30" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="268,411,543,437"/><area shape="rect" id="node32" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="611,360,861,387"/><area shape="rect" id="node43" href="classcontext_free_1_1parser_1_1_automa.html#ad94ecd3a9f8850220f86b6c54b751f78" title="remove dollar simbol lookahed" alt="" coords="248,563,563,589"/><area shape="rect" id="node46" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="269,461,541,488"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#aceb36e584d26bd39a0f5186742cc9b5b" title="Get the axioms." alt="" coords="617,5,855,32"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="932,157,1143,184"/><area shape="rect" id="node9" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="1589,259,1789,285"/><area shape="rect" id="node20" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="617,461,855,488"/><area shape="rect" id="node22" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="639,157,833,184"/><area shape="rect" id="node26" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="919,512,1155,539"/><area shape="rect" id="node11" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="1838,284,2093,311"/><area shape="rect" id="node13" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="1258,208,1497,235"/><area shape="rect" id="node16" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="1258,309,1497,336"/><area shape="rect" id="node38" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="910,411,1165,437"/><area shape="rect" id="node40" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382" title="contextFree.parser.IndexedProduction.getLookahead" alt="" coords="1214,512,1541,539"/><area shape="rect" id="node50" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="627,563,845,589"/><area shape="rect" id="node55" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7379103379c94e377daca0022b28771e" title="Writes the action Reduce or Scift in the Action table." alt="" coords="915,613,1159,640"/><area shape="rect" id="node52" href="classcontext_free_1_1parser_1_1_state.html#a1afb2f9faa5ec548897e44cc863389ba" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="921,563,1153,589"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad7628eb817b4a8efff71f6e22cc1659f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ad7628eb817b4a8efff71f6e22cc1659f">contextFree.parser.LALR1.printTable</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a string with tables Goto Action. </p>
<dl class="section return"><dt>Returns:</dt><dd></dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00401">401</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_ad7628eb817b4a8efff71f6e22cc1659f_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_ad7628eb817b4a8efff71f6e22cc1659f_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_ad7628eb817b4a8efff71f6e22cc1659f_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_ad7628eb817b4a8efff71f6e22cc1659f_cgraph">
<area shape="rect" id="node3" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="290,5,526,32"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="289,56,527,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2281981b3043c0150c1b3d3967572b1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f">contextFree.parser.LALR1.reduce</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a>&#160;</td>
          <td class="paramname"><em>stato</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>if the point is in the last position he wrote the reduces in the action table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>to control </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>false if there are conflicts </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00331">331</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_state.html#a1afb2f9faa5ec548897e44cc863389ba" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="279,5,511,32"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7379103379c94e377daca0022b28771e" title="Writes the action Reduce or Scift in the Action table." alt="" coords="273,56,517,83"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="277,107,513,133"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382" title="contextFree.parser.IndexedProduction.getLookahead" alt="" coords="566,5,893,32"/></map>
</div>
</p>

<p><div id="dynsection-10" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-10-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-10-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-10-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_icgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a2281981b3043c0150c1b3d3967572b1f_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="272,5,544,32"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="592,5,787,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a79576626b3b59b832faecc986b293b36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36">contextFree.parser.LALR1.tableCostruction</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws Exception</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>builds the Action table GoTo from an automa <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html">LALR1</a> and tells us if it is or not type of <a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html">LALR1</a> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">automa</td><td>to control </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>1 if the type of grammar is LALR (1), 0 otherwise </dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00280">280</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-11" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-11-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-11-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-11-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_cgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_cgraph">
<area shape="rect" id="node3" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="326,5,565,32"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="618,56,854,83"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="337,107,554,133"/><area shape="rect" id="node13" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7379103379c94e377daca0022b28771e" title="Writes the action Reduce or Scift in the Action table." alt="" coords="614,157,858,184"/><area shape="rect" id="node9" href="classcontext_free_1_1parser_1_1_state.html#a1afb2f9faa5ec548897e44cc863389ba" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="620,107,852,133"/><area shape="rect" id="node11" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382" title="contextFree.parser.IndexedProduction.getLookahead" alt="" coords="907,107,1234,133"/></map>
</div>
</p>

<p><div id="dynsection-12" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-12-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-12-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-12-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_icgraph" id="classcontext_free_1_1parser_1_1_l_a_l_r1_a79576626b3b59b832faecc986b293b36_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="325,5,520,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/parser/<a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1parser.html">parser</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html">LALR1</a>      </li>

    <li class="footer">Generated on Wed Mar 21 2012 19:55:43 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
